from ftllibs.items.itemtools import ItemIconData

class Item_3142():
    def __init__(self):
        self.parent=False
        self.Name="Youmuu's Ghostblade"
        self.IconFileName="3142.png"
        self.ID=3142
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['3093','1051','3134','1036','1036']
        self.Builds_Into=[]
        self.Tags=['damage','critical_strike','attack_speed','cooldown_reduction','movement']
        self.Costs = 600
        self.Total_Costs = 2687
        self.Description="+30 Attack Damage +15% Critical Strike Chance  UNIQUE Passive: +15% Cooldown Reduction  UNIQUE Passive: +20 Armor Penetration  UNIQUE Active: You gain 20% Movement Speed and 50% Attack Speed for 4 seconds. Melee basic attacks increase the duration by 2 seconds up to a maximum duration of 8 seconds (60 second cooldown)."
        self.RichText_Description=""
        self.has_active=True
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["all"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Attack_Damage += 30.0
        self.parent.Critical_Strike_Chance += 15.0
        # above is %
        self.parent.Cooldown_Reduction += 15.0
        # above is %
        self.parent.Armor_Penetration_Flat += 20.0
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass


